package com.zhuozhou.jdyc.api;

import com.zhuozhou.jdyc.util.apiUtil.DateUtil;

/**
 * Created by 方舟 on 2018/1/10.
 * 静态变量类
 */

public class ConstantsHelper {
    /**
     * 一页总条数
     */
    public static int indexShowPages = 15;

    /**
     * 登录回调
     */
    public static final int LOGIN_SUCCESS = 1;
    /**
     * 登录回调
     */
    public static final int LOGIN_FAILURE = 0;
    /**
     * 过期，或登录异常等登录请求吗
     */
    public static final int REQUEST_ERROR_LOGIN = 3;
    /**
     * 注册
     */
    public static final int REQUEST_REGISTER = 4;
    /**
     * 忘记密码
     */
    public static final int REQUEST_FORGET_PASSWORD = 5;
    /**
     * 修改密码
     */
    public static final int REQUEST_MODIFY_PASSWORD = 6;
    /**
     * GPS
     */
    public static final int GPS_REQUEST_CODE = 7;
    /**
     * 读写权限
     */
    public static final int REQUEST_WRITE = 8;
    /**
     * 打开文件管理
     */
    public static final int REQUEST_OPEN_FILE = 9;
    /**
     * 请求android原生定位权限
     */
    public static final int ANDROID_LOCATION_REQUEST_CODE = 10;

    /**
     * 权限请求码
     */
    public static final int REQUEST_CODE = 2000;

    /**
     * 拍照权限请求码
     */
    public static final int CAMERA_REQUEST_CODE = 1001;
    /**
     * 相册权限
     */
    public static final int PHOTO_REQUEST_CODE = 1002;

    /**
     * 拍摄视频权限请求码
     */
    public static final int SHOOT_REQUEST_CODE = 1010;
    /**
     * 视频相册权限
     */
    public static final int SHOOT_ALBUM_REQUEST_CODE = 1009;
    /**
     * 打开视频相册选择
     */
    public static final int OPEN_SHOOT_ALBUM_REQUEST_CODE = 1011;
    /**
     * 拍照
     */
    public static final int PHOTO_REQUEST_CAMERA= 1008;
    /**
     * 裁剪图片
     */
    public static final int CROP_PHOTO = 1003;
    /**
     * 相册选择图片
     */
    public static final int CHOOSE_PICTURE = 1004;
    /**
     * 手势密码是否开启
     */
    public static final int LOCKVIEW_ISOPEN = 1005;
    /**
     * 手势密码是否开启
     */
    public static final int FINGER_PASSWORD_IS_OPEN = 1005;
    /**
     * 拍摄视频
     */
    public static final int CAMERA_SHOOT_REQUEST_CODE = 1007;
    /**
     * 二维码权限请求
     */
    public static final int QR_CODE = 1006;
    /**
     * 二维码权限请求
     */
    public static final int QR_CODE_PERMISSION = 1012;

    /**
     * 打开百度地图
     */
    public static final int BAIDU_MAP_CHOOSE_REQUEST_CODE = 2001;
    /**
     * 离线巡检上传成功
     */
    public static final int OFFLINE_SUCCESS = 2002;
    /**
     * 无页面或接口权限
     */
    public static final int NO_PERMISSION_REQUEST_CODE = 3000;

    /**
     * welcomeActivity
     */
    public static final int WELCOME_ACTIVITY_REQUEST_CODE = 40003;
    /**
     * 锁屏密码
     */
    public static final int LOOK_VIEW_ACTIVITY_REQUEST_CODE = 40004;
    /**
     * 指纹密码
     */
    public static final int FINGER_VIEW_ACTIVITY_REQUEST_CODE = 40005;

    public static final String ROOTFILEPATH = "zhuozhou.jdyc";
    public static final String TAG = "ZhuozhoujdycLog";


    public static boolean isDownLoadApk = false;//apk是否正在下载
    public static boolean isSuccessRequestUpdate = false;//更新请求是否成功了
    public static final String APK_NAME = DateUtil.getTimestamp() + ".apk";

    public static boolean hasNewAppVersion = false;//是否有新版本
    public static final String DOWNLOAD_CHANNEL_ID = ApplicationHelper.getInstance().getPackageName() + ".scs_app_download";
    public static final String DOWNLOAD_CHANNEL_NAME = "文件下载";

    public static final String NOTIFY_CHANNEL_ID = ApplicationHelper.getInstance().getPackageName() + ".scs_app_info_notify";
    public static final String NOTIFY_CHANNEL_NAME = "消息通知";
    public static final int INSTALL_NOTIFICATION_ID = 4001;

    public static final String HR_APP_ID ="4GEwhUmEWtsJsHrZf2vzgvk2Y5FdY2irSGZTxNdTz69T";
    public static final String HR_SDK_KEY ="VfpvsGXVs4TuVi4sKxV916RNFWaiqAoK5cYhRYK1J1s";

}
